package com.bytz.modules.cms.pay.chinapay.util;

import cn.hutool.core.map.MapUtil;

import java.util.Map;

public class ChinaPayBankUtil {

    private static final Map<String, String> BANK_MAP;

    /**
     * 获取银行名称，如果没找到还是返回code
     */
    public static String getBankName(String code) {
        return BANK_MAP.getOrDefault(code, code);
    }

    static {
        BANK_MAP = MapUtil.newHashMap(128);

        BANK_MAP.put("700000000000001", "中国银行");
        BANK_MAP.put("700000000000002", "中国农业银行");
        BANK_MAP.put("700000000000003", "中国工商银行");
        BANK_MAP.put("700000000000004", "中国建设银行");
        BANK_MAP.put("700000000000005", "中国光大银行");
        BANK_MAP.put("700000000000006", "中国交通银行");
        BANK_MAP.put("700000000000007", "浦发银行");
        BANK_MAP.put("700000000000008", "民生银行");
        BANK_MAP.put("700000000000009", "兴业银行");
        BANK_MAP.put("700000000000010", "招商银行");
        BANK_MAP.put("700000000000011", "中国邮政储蓄银行");
        BANK_MAP.put("700000000000012", "广发银行");
        BANK_MAP.put("700000000000013", "中信银行");
        BANK_MAP.put("700000000000014", "平安银行");
        BANK_MAP.put("700000000000015", "华夏银行");
        BANK_MAP.put("700000000000016", "北京银行");
        BANK_MAP.put("700000000000017", "银联在线支付");
        BANK_MAP.put("700000000000018", "渤海银行");
        BANK_MAP.put("700000000000019", "深圳发展银行");
        BANK_MAP.put("700000000000020", "东亚银行");
        BANK_MAP.put("700000000000021", "杭州银行");
        BANK_MAP.put("700000000000022", "青岛银行");
        BANK_MAP.put("700000000000023", "上海农商行");
        BANK_MAP.put("700000000000024", "北京农商行");
        BANK_MAP.put("700000000000025", "上海银行");
        BANK_MAP.put("700000000000026", "认证支付");
        BANK_MAP.put("700000000000027", "御航宝");
        BANK_MAP.put("700000000000028", "易商旅");
        BANK_MAP.put("700000000000029", "南航易航宝");
        BANK_MAP.put("700000000000030", "国航易商旅");
        BANK_MAP.put("700000000000031", "万事达国际-建行外卡支付");
        BANK_MAP.put("700000000000032", "福建海峡银行");
        BANK_MAP.put("700000000000033", "富滇银行");
        BANK_MAP.put("700000000000034", "广州银行");
        BANK_MAP.put("700000000000035", "汉口银行");
        BANK_MAP.put("700000000000036", "恒发银行");
        BANK_MAP.put("700000000000037", "河北银行");
        BANK_MAP.put("700000000000038", "浙商银行");
        BANK_MAP.put("700000000000039", "鹤壁银行");
        BANK_MAP.put("700000000000040", "星辰银行");
        BANK_MAP.put("700000000000041", "IBK 企业银行");
        BANK_MAP.put("700000000000042", "大新银行");
        BANK_MAP.put("700000000000043", "花旗银行");
        BANK_MAP.put("700000000000044", "徽商银行");
        BANK_MAP.put("700000000000045", "渣打银行");
        BANK_MAP.put("700000000000046", "新韩银行");
        BANK_MAP.put("700000000000047", "大华银行");
        BANK_MAP.put("700000000000048", "晋城银行");
        BANK_MAP.put("700000000000049", "法国兴业银行");
        BANK_MAP.put("700000000000050", "南洋商业银行");
        BANK_MAP.put("700000000000051", "韩亚银行");
        BANK_MAP.put("700000000000052", "晋中市商业银行");
        BANK_MAP.put("700000000000053", "美国运通公司");
        BANK_MAP.put("700000000000054", "万事达国际-农行外卡支付");
        BANK_MAP.put("700000000000055", "九江银行");
        BANK_MAP.put("700000000000056", "永德银行");
        BANK_MAP.put("700000000000057", "大连银行");
        BANK_MAP.put("700000000000058", "德州银行");
        BANK_MAP.put("700000000000059", "东莞银行");
        BANK_MAP.put("700000000000060", "漯河银行");
        BANK_MAP.put("700000000000061", "东营银行");
        BANK_MAP.put("700000000000062", "南京银行");
        BANK_MAP.put("700000000000063", "宁波银行");
        BANK_MAP.put("700000000000064", "宁夏银行");
        BANK_MAP.put("700000000000065", "平顶山银行");
        BANK_MAP.put("700000000000066", "齐鲁银行");
        BANK_MAP.put("700000000000067", "齐商银行");
        BANK_MAP.put("700000000000068", "东海证券");
        BANK_MAP.put("700000000000069", "青海银行");
        BANK_MAP.put("700000000000070", "曲靖市商业银行");
        BANK_MAP.put("700000000000071", "日照银行");
        BANK_MAP.put("700000000000072", "重庆市三峡银行");
        BANK_MAP.put("700000000000073", "厦门银行");
        BANK_MAP.put("700000000000074", "上饶银行");
        BANK_MAP.put("700000000000075", "盛京银行");
        BANK_MAP.put("700000000000076", "顺德农商银行");
        BANK_MAP.put("700000000000077", "苏州银行");
        BANK_MAP.put("700000000000078", "泰安市商业银行");
        BANK_MAP.put("700000000000079", "温州银行");
        BANK_MAP.put("700000000000080", "乌鲁木齐市商业银行");
        BANK_MAP.put("700000000000081", "宜宾市商业银行");
        BANK_MAP.put("700000000000082", "玉溪市商业银行");
        BANK_MAP.put("700000000000083", "张家港农村商业银行");
        BANK_MAP.put("700000000000084", "长沙银行");
        BANK_MAP.put("700000000000085", "中国银联互联网 B2B");
        BANK_MAP.put("700000000000086", "重庆农村商业银行");
        BANK_MAP.put("700000000000087", "周口银行");
        BANK_MAP.put("700000000000088", "光大证券");
        BANK_MAP.put("700000000000089", "江苏省农村信用社联合社");
        BANK_MAP.put("700000000000090", "湖南农信");
        BANK_MAP.put("700000000000091", "海南省农村信用社联合社");
        BANK_MAP.put("700000000000092", "广西北部湾银行");
        BANK_MAP.put("700000000000093", "驻马店市商业银行");
        BANK_MAP.put("700000000000094", "成都农村商业银行");
        BANK_MAP.put("700000000000095", "深圳农村商业银行");
        BANK_MAP.put("700000000000096", "威海市商业银行");
        BANK_MAP.put("700000000000097", "江苏银行");
        BANK_MAP.put("700000000000098", "三门峡市商业银行");
        BANK_MAP.put("700000000000099", "东方证券");
        BANK_MAP.put("700000000000100", "宜昌市商业银行");
        BANK_MAP.put("700000000000101", "尧都商行");
        BANK_MAP.put("700000000000102", "威士国际组织-建行外卡");
        BANK_MAP.put("700000000000103", "威士国际组织-农行外卡");
        BANK_MAP.put("700000000000104", "威士国际组织-中行外卡");
        BANK_MAP.put("700000000000106", "银商+快捷账户支付");
        BANK_MAP.put("700000000000107", "银商账户支付");
        BANK_MAP.put("700000000000108", "快捷账户支付");
        BANK_MAP.put("700000000000109", "广发证券");
        BANK_MAP.put("700000000000110", "恒泰证券");
        BANK_MAP.put("700000000000111", "中投证券");
        BANK_MAP.put("700000000000112", "中信证券");
        BANK_MAP.put("700000000000121", "珠海农村信用社");
        BANK_MAP.put("700000000000122", "翼支付");
        BANK_MAP.put("700000000000123", "中银通");
        BANK_MAP.put("700000000000124", "银商新一代支付");
        BANK_MAP.put("700000000000125", "商旅平台手机支付");
        BANK_MAP.put("700000000000126", "上海金融 IC 卡");
        BANK_MAP.put("700000000000129", "UPOP2.0 前台");
        BANK_MAP.put("700000000000131", "网易商城便民支付");
        BANK_MAP.put("700000000000132", "平安付");
        BANK_MAP.put("700000000000133", "珠海农商银行");
        BANK_MAP.put("700000000000134", "广东南粤银行");
        BANK_MAP.put("700000000000153", "银联全渠道");
        BANK_MAP.put("700000000001424", "支付宝");
        BANK_MAP.put("700000000001425", "微信");
        BANK_MAP.put("700000000001438", "外卡支付机构号");
        BANK_MAP.put("700000000001448", "云闪付");
        BANK_MAP.put("700000000077258", "非 3D Visa 卡");
        BANK_MAP.put("700000000077259", "非 3D MasterCard");
    }
}
